Convert a string to a date in .net
2233
14-Nov-2013
I'm
reading text from a flat file in c# and need to test whether certain values are
dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the
simplest way to do this in .Net?
Anonymous User
14-Nov-2013/* Output (assuming first culture is en-US and second is fr-FR):
Year: 2008, Month: 1, Day: 8, Hour: 14, Minute: 50, Second: 50, Millisecond: 420
Year: 2008, Month: 8, Day: 1, Hour: 14, Minute: 50, Second: 50, Millisecond: 420
Press any key to continue . . .
*/